<?php



class CmsMemberOrderMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CmsMemberOrderMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('cms_member_order');
		$tMap->setPhpName('CmsMemberOrder');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ORDER_ID', 'OrderId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('MEMBER_ID', 'MemberId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DELIVERY_ID', 'DeliveryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DELIVERY_NAME', 'DeliveryName', 'string', CreoleTypes::VARCHAR, true, 25);

		$tMap->addColumn('DELIVERY_COMMENT', 'DeliveryComment', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('PAYMENT_METHOD', 'PaymentMethod', 'string', CreoleTypes::VARCHAR, false, 25);

		$tMap->addColumn('PAYMENT_COMMENT', 'PaymentComment', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('SUB_AMOUNT', 'SubAmount', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('DELIVERY_AMOUNT', 'DeliveryAmount', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('TOTAL_AMOUNT', 'TotalAmount', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('ADDRESS_ID', 'AddressId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COUNTRY', 'Country', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('CITY', 'City', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('ADDRESS1', 'Address1', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('ADDRESS2', 'Address2', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('STATE', 'State', 'string', CreoleTypes::VARCHAR, true, 30);

		$tMap->addColumn('POSTCODE', 'Postcode', 'string', CreoleTypes::VARCHAR, true, 30);

		$tMap->addColumn('REMARKS', 'Remarks', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('STATUS_CODE', 'StatusCode', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_ON', 'CreatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_BY', 'UpdatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('UPDATED_ON', 'UpdatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 